package com.moon.interview.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName("user")
public class User extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /** ID 雪花生成策略 */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /** 账号 */
    @TableField("user_account")
    private String userAccount;

    /** 密码 */
    @TableField("user_password")
    private String userPassword;

    /** 用户昵称 */
    @TableField("user_name")
    private String userName;

    /** 用户头像 */
    @TableField("user_avatar")
    private String userAvatar;

    /** 用户简介 */
    @TableField("user_profile")
    private String userProfile;

    /** 用户角色 */
    @TableField("user_role")
    private String userRole;

    /** 微信开放平台ID */
    @TableField("union_id")
    private String unionId;

    /** 公众号openID */
    @TableField("mp_open_id")
    private String mpOpenId;

}
